#ifndef COMETOSCENE_H
#define COMETOSCENE_H

#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QFileInfo>
#include <QMap>
#include <QPainter>
#include <QList>
#include <QPointF>
#include <QPixmap>



class ComeToScene : public QGraphicsItem
{
public:
    ComeToScene(QGraphicsScene *scene);
    virtual QRectF boundingRect() const;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
    void updateAnimation();

    QString root;
    QPixmap pix;
    int rotation;
    int rotatespeed;
    double opacity;
};

#endif // COMETOSCENE_H
